package com.cy.sapling.admin.service;

import com.cy.sapling.admin.entity.AdminUser;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * Created by Administrator on 2017/11/22.
 */
@FeignClient(name = "sapling-service-admin")
public interface AdminUserService {

    @RequestMapping("/getAdminUser/{id}")
    AdminUser getAdminUser(@PathVariable("id") Long id);

    @RequestMapping("/getAllAdminUserList")
    List<AdminUser> getAllAdminUserList();

}
